/**
*   类说明
*  
*   @Description    
*   @creator         tangkun
*   @create-time     2011-7-28
*   @revision        $Id
*/

package com.scrawler.udt;

import org.htmlparser.Parser;
import org.htmlparser.PrototypicalNodeFactory;
import org.htmlparser.lexer.Lexer;
import org.htmlparser.util.ParserFeedback;
import org.springframework.stereotype.Service;

@Service
public class MyParser extends Parser{
	
	/**  描述  */  
	
	
	private static final long serialVersionUID = 1L;
	private static PrototypicalNodeFactory factory = null;  
    //注册自定义标签  
    static{  
        factory = new PrototypicalNodeFactory();  
        //factory.registerTag(new FontTag());  
         factory.registerTag(new StrongTag());  
         factory.registerTag(new HTag());  
    }  
    public MyParser(){  
        super();  
        setNodeFactory(factory);  
    }  
      
    public MyParser(Lexer lexer, ParserFeedback fb) {  
        super(lexer, fb);  
        setNodeFactory(factory);  
    }  
}
